import App from "./App.vue";

import { createApp } from "vue";

import "./registerServiceWorker";
import router from "./router";
import store from "./store";
import ElementPlus from "element-plus";
import '@/assets/css/index.scss'

import "element-plus/dist/index.css";
import zhCn from 'element-plus/es/locale/lang/zh-cn'

// event-bus.ts
import  mitt  from 'mitt';
 
export const eventBus = mitt();
// 1. 引入你需要的组件
import { Button, Form,Image as VanImage , Field, CellGroup, Sidebar, SidebarItem,Tab, Tabs,TreeSelect   } from "vant";
// 2. 引入组件样式
import "vant/lib/index.css";
const app = createApp(App);
app.use(ElementPlus, {
  locale: zhCn,
})
app
  .use(Button)
  .use(Form)
  .use(Field)
  .use(CellGroup)
  .use(Sidebar)
  .use(SidebarItem)
  .use(Tab)
  .use(TreeSelect)
  .use(Tabs)
  .use(VanImage)
  .use(store)
  .use(router)
  .mount("#app");
